﻿using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace RoboTrocity.Code.GameStates {
	class PauseState : GameState {
		public PauseState(PushState pushS, PopState popS): base(pushS, popS) {
			
		}

		public override void ProcessInput(KeyboardState kState, KeyboardState prevKState, MouseState mState, MouseState prevMState) {
			keyState = kState;
			prevKeyState = prevKState;
			mouseState = mState;
			prevMouseState = prevMState;

			if (keyIsPressed(Keys.Escape, false)) {
				popState();
			}
		}

		public override void Update(float elapsed) {
			//do nothing. The game is paused, after all.
		}

		public override void Draw(SpriteBatch sBatch) {
			//draw the words PAUSE on the screen	
		}

		public override bool ProcessThrough {
			get { return false; }
		}

		public override bool DrawThrough {
			get { return true; }
		}
	}
}
